package day05;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.context.annotation.AnnotationConfigUtils;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.context.support.GenericApplicationContext;

import javax.annotation.PostConstruct;


/**
 * @title: App64_2
 * @author: lbj
 * @date: 2022/5/2 8:42 上午
 * @description: TODO 类描述
 */

/**
 * 解决构造方法循环依赖问题
 */
public class App60_3 {

    public static void main(String[] args) {
        final GenericApplicationContext context = new GenericApplicationContext();
        final ClassPathBeanDefinitionScanner scanner = new ClassPathBeanDefinitionScanner(context.getDefaultListableBeanFactory());
        scanner.scan("day05.sub");
        context.refresh();
        System.out.println();
    }

}
